<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>再见Vue</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="app">
    <div :style="{color: 'red', fontSize: '24px'}">块级元素</div>
    <div :style="style1">块级元素</div>
    <div :style="[style1, style2]">块级元素</div>
  </div>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        style1: {
          color: 'orange',
          backgroundColor: 'pink',
          fontSize: '24px',
          'text-align': 'center'
        },
        style2: {
          color: 'green',
          boder: '1px solid #666',
          textAlign: 'right',
          marginTop: '10px'
        }
      },
      methods: {
        clickHandler() {

        }
      }
    })
  </script>
</body>

</html>